<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
	prefix="decorator"%>

<html>
	<head>
		<title><decorator:title />-M-star物料之星</title>
		<link href="css/screen.css" type="text/css" rel="stylesheet"
			media="screen, projection" />
		<!--[if lt IE 5]><link rel="stylesheet" href="css/ie.css" type="text/css" media="screen, projection"><![endif]-->
		<link href="css/ddcolortabs.css" type="text/css" rel="stylesheet" />
		<link href="css/hxzon.head.css" type="text/css" rel="stylesheet" />

		<link rel="shortcut icon" href="css/favicon.ico" type="image/x-icon" />
		<link rel="bookmark" href="css/favicon.ico" type="image/x-icon" />

		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/dropdowntabs.js"></script>
		<script type="text/javascript" src="js/jquery.validate.pack.js"></script>
		
		<script type="text/javascript" src="js/hxzon.head.js"></script>
		<decorator:head />
	</head>

	<body class="">
	<div id="body">
		<div id="loginInfo">
			
			<c:if test="${empty visitor || visitor.username eq 'guest'}">
				<a class="" href="wel!toLogin.z">登陆</a>
			</c:if>
			<c:if test="${!empty visitor && visitor.username ne 'guest'}">
				${visitor.username} |<a class="" href="wel!logout.z">登出</a>
			</c:if>
		</div>
		<div id="logo">
			<!--  <img alt="logo" src="css/logo.png" >-->
			<span class="logoE">M-star</span><span class="logoC"></span>
		</div>
		
		<div id="colortab" class="ddcolortabs">
			<ul>
				<li>
					<span><a href="wel!welcome.z" rel="dropmenu1_a">首页</a></span>
				</li>
				<li>
					<span><a href="m!all.z?page.currentPage=1" rel="dropmenu2_a">物料查看</a></span>
				</li>
				<li>
					<span><a href="b!all.z?page.currentPage=1" rel="dropmenu3_a">BOM查看</a></span>
				</li>
				<li>
					<span><a href="#" rel="dropmenu4_a">系统管理</a></span>
				</li>
			</ul>
		</div>

		<div id="msg">${msg }</div>
		<div class="ddcolortabsline">
			&nbsp;
		</div>

		<div id="dropmenu1_a" class="dropmenudiv_a">
		<c:if test="${empty visitor || visitor.username eq 'guest'}">
				<a class="" href="wel!toLogin.z">登陆</a>
			</c:if>
			<c:if test="${!empty visitor && visitor.username ne 'guest'}">
			<a class="" href="wel!logout.z">${visitor.username} |登出</a>
				<a class="" href="wel!toChangePassword.z">${visitor.username }修改密码</a>
			</c:if>
		</div>

		<div id="dropmenu2_a" class="dropmenudiv_a" >
			<a href="m!all.z?page.currentPage=1" >物料列表</a>
			<a class="" href="m!toSearch.z">搜索物料</a>
			<c:if test="${!empty visitor && visitor.adminGrade <=2}">
			<a class="" href="m!toAdd.z">新建物料</a>
			</c:if>
			<c:if test="${!empty visitor && visitor.adminGrade <=1}">
			<a class="" href="mup!toImportMaterial.z">导入物料</a>
			<a class="" href="mup!exportMaterial.z">导出物料</a>
			</c:if>
		</div>
		
		<div id="dropmenu3_a" class="dropmenudiv_a" >
			<a href="b!all.z?page.currentPage=1" >BOM列表</a>
			<a class="" href="bup!toValidate.z">校验BOM</a>
			<c:if test="${!empty visitor && visitor.adminGrade <=1}">
			<a class="" href="bup!toImportBom.z">导入BOM</a>
			</c:if>
		</div>
		
		<div id="dropmenu4_a" class="dropmenudiv_a" >
			<c:if test="${!empty visitor && visitor.username ne 'guest'}">
				<a class="" href="hl!all.z">查看系统日志</a>
			</c:if>
			<c:if test="${visitor.adminGrade == 0}">
				<a class="" href="u!all.z">用户管理</a>
				<a class="askAgain" href="m!deleteAll.z">清空物料</a>
				<a class="askAgain" href="b!deleteAll.z">清空单板表</a>
				<a class="" href="zup!toImportZip.z">导入zip</a>
				<a class="" href="zup!exportZip.z">导出zip</a>
			</c:if>
		</div>

		<decorator:body />

		<hr class="space">
		<div id="footPart">
			Copyright © ptswitch
		</div>
		</div>
	</body>
</html>